<?php

use Illuminate\Database\Seeder;
use Carbon\Carbon;

class MenuDataSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        // 主菜单数据
        DB::table('menus')->insert([
            [
                'code' => 'm100',
                'name' => '通用数据设置',
                'parent_code' => '0',
                'iconfont' => '&#xe619;',
                'show_level' => 0,
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_common_use'
            ],
            [
                'code' => 'm200',
                'name' => '换届数据设置',
                'parent_code' => '0',
                'iconfont' => '&#xe624;',
                'show_level' => 1,
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_re_elect'
            ],
            [
                'code' => 'm300',
                'name' => '信息搜集汇总',
                'parent_code' => '0',
                'iconfont' => '&#xe72d;',
                'show_level' => 1,
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_collect'
            ],
            [
                'code' => 'm400',
                'name' => '迎新业务导入',
                'parent_code' => '0',
                'iconfont' => '&#xe665;',
                'show_level' => 1,
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_import'
            ],
            [
                'code' => 'm500',
                'name' => '迎新工具',
                'parent_code' => '0',
                'iconfont' => '&#xe653;',
                'show_level' => 1,
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_tools'
            ],
        ]);
        DB::table('submenus')->insert([
//            [
//                'code' => 'sm100',
//                'name' => '公告栏目',
//                'parent_code' => '0',
//                'menu_code' => 'm100',
//                'iconfont' => '&#xe648;',
//                'url' => '/notices/programs/index',
//                'created_at' => Carbon::now()->toDateTimeString(),
//                'updated_at' => Carbon::now()->toDateTimeString(),
//                'slug' =>'menu_program'
//            ],

            [
                'code' => 'sm110',
                'name' => '公告发布',
                'parent_code' => '0',
                'menu_code' => 'm100',
                'iconfont' => '&#xe669;',
                'url' => '/notices/details/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_publish'
            ],

            [
                'code' => 'sm120',
                'name' => '学校和校区',
                'parent_code' => '0',
                'menu_code' => 'm100',
                'iconfont' => '&#xe632;',
                'url' => '/colleges/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_school'
            ],
            [
                'code' => 'sm130',
                'name' => '名师风采',
                'parent_code' => '0',
                'menu_code' => 'm100',
                'iconfont' => '&#xe60e;',
                'url' => '/excellent/teachers/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_teacher'
            ],
            [
                'code' => 'sm140',
                'name' => '优秀学子',
                'parent_code' => '0',
                'menu_code' => 'm100',
                'iconfont' => '&#xe62e;',
                'url' => '/excellent/students/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_student'
            ],
            [
                'code' => 'sm150',
                'name' => '教学学期',
                'parent_code' => '0',
                'menu_code' => 'm100',
                'iconfont' => '&#xe649;',
                'url' => '/terms/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_terms'
            ],
            [
                'code' => 'sm160',
                'name' => '校内部门',
                'parent_code' => '0',
                'menu_code' => 'm100',
                'iconfont' => '&#xe62b;',
                'url' => '/departments/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_departments'
            ],
            [
                'code' => 'sm170',
                'name' => '教职工',
                'parent_code' => '0',
                'menu_code' => 'm100',
                'iconfont' => '&#xe626;',
                'url' => '/faculties/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_faculties'
            ],
            [
                'code' => 'sm180',
                'name' => '滚动图片',
                'parent_code' => '0',
                'menu_code' => 'm100',
                'iconfont' => '&#xe67a;',
                'url' => '/scroll/images/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_faculties'
            ],
            
            [
                'code' => 'sm180',
                'name' => '用户管理',
                'parent_code' => '0',
                'menu_code' => 'm100',
                'iconfont' => '&#xe67a;',
                'url' => '',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_faculties'
            ],
            
            [
                'code' => 'sm180',
                'name' => '用户管理',
                'parent_code' => '0',
                'menu_code' => 'm100',
                'iconfont' => '&#xe67a;',
                'url' => '',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_faculties'
            ],
            
            [
                'code' => 'sm200',
                'name' => '角色管理',
                'parent_code' => '0',
                'menu_code' => 'm200',
                'iconfont' => '&#xe68c;',
                'url' => '',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_change'
            ],

            [
                'code' => 'sm210',
                'name' => '新生信息',
                'parent_code' => '0',
                'menu_code' => 'm200',
                'iconfont' => '&#xe657;',
                'url' => '/newstudent/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_new_information'
            ],

            [
                'code' => 'sm220',
                'name' => '志愿设置',
                'parent_code' => '0',
                'menu_code' => 'm200',
                'iconfont' => '&#xe66a;',
                'url' => '/major/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_choice'
            ],

            [
                'code' => 'sm230',
                'name' => '生活用品',
                'parent_code' => '0',
                'menu_code' => 'm200',
                'iconfont' => '&#xe62d;',
                'url' => '/dailyuse/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_life'
            ],

            [
                'code' => 'sm240',
                'name' => '新生教材',
                'parent_code' => '0',
                'menu_code' => 'm200',
                'iconfont' => '&#xe620;',
                'url' => '/textbook/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_books'
            ],

            [
                'code' => 'sm250',
                'name' => '校服清单',
                'parent_code' => '0',
                'menu_code' => 'm200',
                'iconfont' => '&#xe666;',
                'url' => '/cloth/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_clothes'
            ],

            [
                'code' => 'sm260',
                'name' => '费用类别',
                'parent_code' => '0',
                'menu_code' => 'm200',
                'iconfont' => '&#xe678;',
                'url' => '/pay/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_moneys'
            ],

            [
                'code' => 'sm270',
                'name' => '迎新日程',
                'parent_code' => '0',
                'menu_code' => 'm200',
                'iconfont' => '&#xe616;',
                'url' => '/timetable/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_times'
            ],
            [
                'code' => 'sm280',
                'name' => '现场报到流程',
                'parent_code' => '0',
                'menu_code' => 'm200',
                'iconfont' => '&#xe625;',
                'url' => '/report/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_report'
            ],

            [
                'code' => 'sm300',
                'name' => '志愿填报汇总',
                'parent_code' => '0',
                'menu_code' => 'm300',
                'iconfont' => '&#xe698;',
                'url' => '/collects/majors/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_choice_sum'
            ],

            [
                'code' => 'sm310',
                'name' => '宿舍申请汇总',
                'parent_code' => '0',
                'menu_code' => 'm300',
                'iconfont' => '&#xe638;',
                'url' => '/collects/dorms/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_dorm_sum'
            ],
            [
                'code' => 'sm320',
                'name' => '延迟军训汇总',
                'parent_code' => '0',
                'menu_code' => 'm300',
                'iconfont' => '&#xe697;',
                'url' => '/collects/trainings/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_training_sum'
            ],

            [
                'code' => 'sm330',
                'name' => '费用收缴汇总',
                'parent_code' => '0',
                'menu_code' => 'm300',
                'iconfont' => '&#xe661;',
                'url' => '/collects/pays/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_money_sum'
            ],

            [
                'code' => 'sm400',
                'name' => '志愿录取结果',
                'parent_code' => '0',
                'menu_code' => 'm400',
                'iconfont' => '&#xe600;',
                'url' => '/results/majors/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_choice_result'
            ],
            [
                'code' => 'sm410',
                'name' => '班级分配结果',
                'parent_code' => '0',
                'menu_code' => 'm400',
                'iconfont' => '&#xe60b;',
                'url' => '/results/classes/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_class_result'
            ],
            [
                'code' => 'sm420',
                'name' => '宿舍分配结果',
                'parent_code' => '0',
                'menu_code' => 'm400',
                'iconfont' => '&#xe628;',
                'url' => '/results/dorms/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_dorm_result'
            ],

            [
                'code' => 'sm500',
                'name' => '身份确认',
                'parent_code' => '0',
                'menu_code' => 'm500',
                'iconfont' => '&#xe62f;',
                'url' => '/tools/identity/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_confirm_identity'
            ],
            [
                'code' => 'sm510',
                'name' => '现场缴费',
                'parent_code' => '0',
                'menu_code' => 'm500',
                'iconfont' => '&#xe628;',
                'url' => '/tools/pay/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_now_pay'
            ],
            [
                'code' => 'sm520',
                'name' => '生活用品发放',
                'parent_code' => '0',
                'menu_code' => 'm500',
                'iconfont' => '&#xe618;',
                'url' => '/tools/dailyuse/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_daily_use_give'
            ],
            [
                'code' => 'sm530',
                'name' => '教材发放',
                'parent_code' => '0',
                'menu_code' => 'm500',
                'iconfont' => '&#xe620;',
                'url' => '/tools/textbook/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_textbook_give'
            ],

//            [
//                'code' => 'sm530',
//                'name' => '校服发放',
//                'parent_code' => '0',
//                'menu_code' => 'm500',
//                'iconfont' => '&#xe628;',
//                'url' => '',
//                'created_at' => Carbon::now()->toDateTimeString(),
//                'updated_at' => Carbon::now()->toDateTimeString(),
//                'slug' =>'menu_cloth_give'
//            ],
            [
                'code' => 'sm540',
                'name' => '宿舍钥匙发放',
                'parent_code' => '0',
                'menu_code' => 'm500',
                'iconfont' => '&#xe602;',
                'url' => '/tools/key/index',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
                'slug' =>'menu_key_give'
            ],
        ]);

    }
}
